#include <stdio.h>

int main() {
    char arr[31] = {0};
    scanf("%[^\n]", arr);
    int sz = 0;
    while (arr[sz]!= '\0') {
        sz++;
    }
    char* pa = arr;
    char* pb = arr + sz - 1;
    if (sz <= 1) {
        printf("Yes");
        return 0;
    }
    while (pa < pb) {
        if (*pa!= *pb) {
            printf("No");
            return 0;
        }
        pa++;
        pb--;
    }
    printf("Yes");
    return 0;
}
